package com.ncsc.lmis.model;
// Generated Feb 25, 2014 11:44:39 PM by Hibernate Tools 3.4.0.CR1


import java.util.Date;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * SaleLoanContractGuarantor generated by hbm2java
 */
@Entity
@Table(name="sale_loan_contract_guarantor"
    ,catalog="lmis"
)
public class SaleLoanContractGuarantor  implements java.io.Serializable {


     private SaleLoanContractGuarantorId id;
     private SaleLoanContract saleLoanContract;
     private Integer custGrtNo;
     private Short occupationNo;
     private String idCardNo;
     private Date idCardIssuedDate;
     private Date idCardExpireDate;
     private String idCardIssuedAt;
     private Short nameTitleNo;
     private String firstName;
     private String lastName;
     private Short sexNo;
     private Short grtAge;
     private String addrNo;
     private Short addrMoo;
     private String addrBuilding;
     private String addrSoi;
     private String addrRoad;
     private String addr1;
     private Integer addr2No;
     private Integer addr3No;
     private Short addr4No;
     private String addr5;
     private String phoneNo;
     private String mobileNo;
     private String officeName;
     private String officeAddrNo;
     private Short officeAddrMoo;
     private String officeAddrBuilding;
     private String officeAddrSoi;
     private String officeAddrRoad;
     private String officeAddr1;
     private Integer officeAddr2No;
     private Integer officeAddr3No;
     private Short officeAddr4No;
     private String officeAddr5;
     private String officePhoneNo;

    public SaleLoanContractGuarantor() {
    }

	
    public SaleLoanContractGuarantor(SaleLoanContractGuarantorId id, SaleLoanContract saleLoanContract) {
        this.id = id;
        this.saleLoanContract = saleLoanContract;
    }
    public SaleLoanContractGuarantor(SaleLoanContractGuarantorId id, SaleLoanContract saleLoanContract, Integer custGrtNo, Short occupationNo, String idCardNo, Date idCardIssuedDate, Date idCardExpireDate, String idCardIssuedAt, Short nameTitleNo, String firstName, String lastName, Short sexNo, Short grtAge, String addrNo, Short addrMoo, String addrBuilding, String addrSoi, String addrRoad, String addr1, Integer addr2No, Integer addr3No, Short addr4No, String addr5, String phoneNo, String mobileNo, String officeName, String officeAddrNo, Short officeAddrMoo, String officeAddrBuilding, String officeAddrSoi, String officeAddrRoad, String officeAddr1, Integer officeAddr2No, Integer officeAddr3No, Short officeAddr4No, String officeAddr5, String officePhoneNo) {
       this.id = id;
       this.saleLoanContract = saleLoanContract;
       this.custGrtNo = custGrtNo;
       this.occupationNo = occupationNo;
       this.idCardNo = idCardNo;
       this.idCardIssuedDate = idCardIssuedDate;
       this.idCardExpireDate = idCardExpireDate;
       this.idCardIssuedAt = idCardIssuedAt;
       this.nameTitleNo = nameTitleNo;
       this.firstName = firstName;
       this.lastName = lastName;
       this.sexNo = sexNo;
       this.grtAge = grtAge;
       this.addrNo = addrNo;
       this.addrMoo = addrMoo;
       this.addrBuilding = addrBuilding;
       this.addrSoi = addrSoi;
       this.addrRoad = addrRoad;
       this.addr1 = addr1;
       this.addr2No = addr2No;
       this.addr3No = addr3No;
       this.addr4No = addr4No;
       this.addr5 = addr5;
       this.phoneNo = phoneNo;
       this.mobileNo = mobileNo;
       this.officeName = officeName;
       this.officeAddrNo = officeAddrNo;
       this.officeAddrMoo = officeAddrMoo;
       this.officeAddrBuilding = officeAddrBuilding;
       this.officeAddrSoi = officeAddrSoi;
       this.officeAddrRoad = officeAddrRoad;
       this.officeAddr1 = officeAddr1;
       this.officeAddr2No = officeAddr2No;
       this.officeAddr3No = officeAddr3No;
       this.officeAddr4No = officeAddr4No;
       this.officeAddr5 = officeAddr5;
       this.officePhoneNo = officePhoneNo;
    }
   
     @EmbeddedId

    
    @AttributeOverrides( {
        @AttributeOverride(name="contractRecNo", column=@Column(name="CONTRACT_REC_NO", nullable=false) ), 
        @AttributeOverride(name="grtSeqNo", column=@Column(name="GRT_SEQ_NO", nullable=false) ) } )
    public SaleLoanContractGuarantorId getId() {
        return this.id;
    }
    
    public void setId(SaleLoanContractGuarantorId id) {
        this.id = id;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="CONTRACT_REC_NO", nullable=false, insertable=false, updatable=false)
    public SaleLoanContract getSaleLoanContract() {
        return this.saleLoanContract;
    }
    
    public void setSaleLoanContract(SaleLoanContract saleLoanContract) {
        this.saleLoanContract = saleLoanContract;
    }

    
    @Column(name="CUST_GRT_NO")
    public Integer getCustGrtNo() {
        return this.custGrtNo;
    }
    
    public void setCustGrtNo(Integer custGrtNo) {
        this.custGrtNo = custGrtNo;
    }

    
    @Column(name="OCCUPATION_NO")
    public Short getOccupationNo() {
        return this.occupationNo;
    }
    
    public void setOccupationNo(Short occupationNo) {
        this.occupationNo = occupationNo;
    }

    
    @Column(name="ID_CARD_NO", length=20)
    public String getIdCardNo() {
        return this.idCardNo;
    }
    
    public void setIdCardNo(String idCardNo) {
        this.idCardNo = idCardNo;
    }

    @Temporal(TemporalType.DATE)
    @Column(name="ID_CARD_ISSUED_DATE", length=10)
    public Date getIdCardIssuedDate() {
        return this.idCardIssuedDate;
    }
    
    public void setIdCardIssuedDate(Date idCardIssuedDate) {
        this.idCardIssuedDate = idCardIssuedDate;
    }

    @Temporal(TemporalType.DATE)
    @Column(name="ID_CARD_EXPIRE_DATE", length=10)
    public Date getIdCardExpireDate() {
        return this.idCardExpireDate;
    }
    
    public void setIdCardExpireDate(Date idCardExpireDate) {
        this.idCardExpireDate = idCardExpireDate;
    }

    
    @Column(name="ID_CARD_ISSUED_AT", length=100)
    public String getIdCardIssuedAt() {
        return this.idCardIssuedAt;
    }
    
    public void setIdCardIssuedAt(String idCardIssuedAt) {
        this.idCardIssuedAt = idCardIssuedAt;
    }

    
    @Column(name="NAME_TITLE_NO")
    public Short getNameTitleNo() {
        return this.nameTitleNo;
    }
    
    public void setNameTitleNo(Short nameTitleNo) {
        this.nameTitleNo = nameTitleNo;
    }

    
    @Column(name="FIRST_NAME", length=50)
    public String getFirstName() {
        return this.firstName;
    }
    
    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    
    @Column(name="LAST_NAME", length=50)
    public String getLastName() {
        return this.lastName;
    }
    
    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    
    @Column(name="SEX_NO")
    public Short getSexNo() {
        return this.sexNo;
    }
    
    public void setSexNo(Short sexNo) {
        this.sexNo = sexNo;
    }

    
    @Column(name="GRT_AGE")
    public Short getGrtAge() {
        return this.grtAge;
    }
    
    public void setGrtAge(Short grtAge) {
        this.grtAge = grtAge;
    }

    
    @Column(name="ADDR_NO", length=50)
    public String getAddrNo() {
        return this.addrNo;
    }
    
    public void setAddrNo(String addrNo) {
        this.addrNo = addrNo;
    }

    
    @Column(name="ADDR_MOO")
    public Short getAddrMoo() {
        return this.addrMoo;
    }
    
    public void setAddrMoo(Short addrMoo) {
        this.addrMoo = addrMoo;
    }

    
    @Column(name="ADDR_BUILDING", length=100)
    public String getAddrBuilding() {
        return this.addrBuilding;
    }
    
    public void setAddrBuilding(String addrBuilding) {
        this.addrBuilding = addrBuilding;
    }

    
    @Column(name="ADDR_SOI", length=50)
    public String getAddrSoi() {
        return this.addrSoi;
    }
    
    public void setAddrSoi(String addrSoi) {
        this.addrSoi = addrSoi;
    }

    
    @Column(name="ADDR_ROAD", length=50)
    public String getAddrRoad() {
        return this.addrRoad;
    }
    
    public void setAddrRoad(String addrRoad) {
        this.addrRoad = addrRoad;
    }

    
    @Column(name="ADDR1", length=100)
    public String getAddr1() {
        return this.addr1;
    }
    
    public void setAddr1(String addr1) {
        this.addr1 = addr1;
    }

    
    @Column(name="ADDR2_NO")
    public Integer getAddr2No() {
        return this.addr2No;
    }
    
    public void setAddr2No(Integer addr2No) {
        this.addr2No = addr2No;
    }

    
    @Column(name="ADDR3_NO")
    public Integer getAddr3No() {
        return this.addr3No;
    }
    
    public void setAddr3No(Integer addr3No) {
        this.addr3No = addr3No;
    }

    
    @Column(name="ADDR4_NO")
    public Short getAddr4No() {
        return this.addr4No;
    }
    
    public void setAddr4No(Short addr4No) {
        this.addr4No = addr4No;
    }

    
    @Column(name="ADDR5", length=50)
    public String getAddr5() {
        return this.addr5;
    }
    
    public void setAddr5(String addr5) {
        this.addr5 = addr5;
    }

    
    @Column(name="PHONE_NO", length=20)
    public String getPhoneNo() {
        return this.phoneNo;
    }
    
    public void setPhoneNo(String phoneNo) {
        this.phoneNo = phoneNo;
    }

    
    @Column(name="MOBILE_NO", length=20)
    public String getMobileNo() {
        return this.mobileNo;
    }
    
    public void setMobileNo(String mobileNo) {
        this.mobileNo = mobileNo;
    }

    
    @Column(name="OFFICE_NAME", length=50)
    public String getOfficeName() {
        return this.officeName;
    }
    
    public void setOfficeName(String officeName) {
        this.officeName = officeName;
    }

    
    @Column(name="OFFICE_ADDR_NO", length=50)
    public String getOfficeAddrNo() {
        return this.officeAddrNo;
    }
    
    public void setOfficeAddrNo(String officeAddrNo) {
        this.officeAddrNo = officeAddrNo;
    }

    
    @Column(name="OFFICE_ADDR_MOO")
    public Short getOfficeAddrMoo() {
        return this.officeAddrMoo;
    }
    
    public void setOfficeAddrMoo(Short officeAddrMoo) {
        this.officeAddrMoo = officeAddrMoo;
    }

    
    @Column(name="OFFICE_ADDR_BUILDING", length=100)
    public String getOfficeAddrBuilding() {
        return this.officeAddrBuilding;
    }
    
    public void setOfficeAddrBuilding(String officeAddrBuilding) {
        this.officeAddrBuilding = officeAddrBuilding;
    }

    
    @Column(name="OFFICE_ADDR_SOI", length=50)
    public String getOfficeAddrSoi() {
        return this.officeAddrSoi;
    }
    
    public void setOfficeAddrSoi(String officeAddrSoi) {
        this.officeAddrSoi = officeAddrSoi;
    }

    
    @Column(name="OFFICE_ADDR_ROAD", length=50)
    public String getOfficeAddrRoad() {
        return this.officeAddrRoad;
    }
    
    public void setOfficeAddrRoad(String officeAddrRoad) {
        this.officeAddrRoad = officeAddrRoad;
    }

    
    @Column(name="OFFICE_ADDR1", length=100)
    public String getOfficeAddr1() {
        return this.officeAddr1;
    }
    
    public void setOfficeAddr1(String officeAddr1) {
        this.officeAddr1 = officeAddr1;
    }

    
    @Column(name="OFFICE_ADDR2_NO")
    public Integer getOfficeAddr2No() {
        return this.officeAddr2No;
    }
    
    public void setOfficeAddr2No(Integer officeAddr2No) {
        this.officeAddr2No = officeAddr2No;
    }

    
    @Column(name="OFFICE_ADDR3_NO")
    public Integer getOfficeAddr3No() {
        return this.officeAddr3No;
    }
    
    public void setOfficeAddr3No(Integer officeAddr3No) {
        this.officeAddr3No = officeAddr3No;
    }

    
    @Column(name="OFFICE_ADDR4_NO")
    public Short getOfficeAddr4No() {
        return this.officeAddr4No;
    }
    
    public void setOfficeAddr4No(Short officeAddr4No) {
        this.officeAddr4No = officeAddr4No;
    }

    
    @Column(name="OFFICE_ADDR5", length=10)
    public String getOfficeAddr5() {
        return this.officeAddr5;
    }
    
    public void setOfficeAddr5(String officeAddr5) {
        this.officeAddr5 = officeAddr5;
    }

    
    @Column(name="OFFICE_PHONE_NO", length=20)
    public String getOfficePhoneNo() {
        return this.officePhoneNo;
    }
    
    public void setOfficePhoneNo(String officePhoneNo) {
        this.officePhoneNo = officePhoneNo;
    }




}


